rule.uc: always format ICMP type/code list as set
authorJo-Philipp Wich <[email protected]>
Sun, 17 Oct 2021 09:16:27 +0000 (11:16 +0200)
committerJo-Philipp Wich <[email protected]>
Sun, 17 Oct 2021 09:16:27 +0000 (11:16 +0200)
commit35f5120afcf158e445062fdb5072684ed24d91d0
tree275ff7e9e7d0519766bc768ce5604e319bc8704d
parentcf835cecc8a449b2d2019f1ef4f085e535d5c1c1
rule.uc: always format ICMP type/code list as set

Ensure that the concatenated type . code list values are always formatted
as anonymous set, even if the list just contains one item. Fixes the
following nftables error when parsing such a rule:

  Error: Use concatenations with sets and maps, not singleton values

Signed-off-by: Jo-Philipp Wich <[email protected]>
root/usr/share/firewall4/templates/rule.uc